#include <iostream>
#include <cstdio>
#include <string>
#include <queue>

using namespace std;

struct co_ordiante
{
  int x, y;
};

char a[100][100];
int n;

void inp()
{
  scanf("%d\n", &n);
  for (int i = 0; i < n; i++)
  {
    for (int j = 0; j < n; j++) cin >> a[i][j];
    scanf("\n");
  } 
}
 
void process()
{
}
 
void out()
{
}
 
main()
{
  freopen("obstacle.in", "r", stdin);
  freopen("obstacle.out", "w", stdout); 
  
  inp();
  process();
  out();        
  return 0;
}
